﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Owin;
using CorreoSocialWeb.Models;
using CorreoSocialWeb.Views;

using Subgurim.Controles;
using Subgurim.Controles.GoogleChartIconMaker;

namespace CorreoSocialWeb.Views
{
    public class UsuarioDePaginaHelper
    {
        public int GetUsuarioId(HttpContext context)
        {
            var userManager = context.GetOwinContext().GetUserManager<ApplicationUserManager>();

            return userManager.FindById(context.User.Identity.GetUserId()).UsuarioId;
        }
    }
}